package com.glela.model;

import java.io.Serializable;

public class Ret<T> implements Serializable{
	private boolean success = false;
	private String  errorMsg ;
	private T  data;
	
	
	public Ret(boolean success,String errorMsg , T data){
		this.success = success;
		this.errorMsg = errorMsg;
		this.data = data;
	}
	
	public Ret(boolean success,String errorMsg) {
		this.success = success;
		this.errorMsg = errorMsg;
	}
	
	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}
	public String getErrorMsg() {
		return errorMsg;
	}
	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}
	public T getData() {
		return data;
	}
	public void setData(T data) {
		this.data = data;
	}
	
	
	
}
